package cn.wolfcode.trip.base.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

@Setter@Getter
public class Store extends BaseDomain{

    private String picture;

    private String diseribe;

    private String mail;

    private Integer peoples;

    private BigDecimal price;

    private Boolean shelves;

    public String getJson(){
        Map<String, Object> map = new HashMap<>();
        map.put("id",id);
        map.put("picture",picture);
        map.put("diseribe",diseribe);
        map.put("mail",mail);
        map.put("peoples",peoples);
        map.put("price",price);
        map.put("shelves",shelves);
        return JSON.toJSONString(map);
    }
}